package com.nq.service;

import com.github.pagehelper.PageInfo;
import com.nq.common.ServerResponse;
import com.nq.pojo.AgentUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IAgentUserService {
  AgentUser getCurrentAgent(HttpServletRequest paramHttpServletRequest);

  AgentUser findByCode(String paramString);

  ServerResponse login(String paramString1, String paramString2, String paramString3, HttpServletRequest paramHttpServletRequest);

  ServerResponse getAgentInfo(HttpServletRequest paramHttpServletRequest);

  ServerResponse updatePwd(String paramString1, String paramString2, HttpServletRequest paramHttpServletRequest);


  ServerResponse<PageInfo> getSecondAgent(int paramInt1, int paramInt2, HttpServletRequest paramHttpServletRequest);

  ServerResponse<PageInfo> listByAdmin(String paramString1, String paramString2, int paramInt1, int paramInt2, int paramInt3, HttpServletRequest paramHttpServletRequest);

  ServerResponse add(AgentUser paramAgentUser, HttpServletRequest paramHttpServletRequest);

  ServerResponse update(AgentUser paramAgentUser);

  int CountAgentNum();

  List<AgentUser> getAgentSuperiorList(int agentId);

  ServerResponse updateAgentAmt(Integer paramInteger1, Integer paramInteger2, Integer paramInteger3);
  ServerResponse delAgent(Integer agentId);

  ServerResponse addAgentUser(String agentName, String agentPwd, String agentRealName, String agentPhone, Integer parentId, String s, String s1, String s2, String serviceUrl, HttpServletRequest request);

  ServerResponse agentList(String realName, String phone, int pageNum, int pageSize, Integer agentUserId, HttpServletRequest request);

}
